#ifndef WIDGET_H
#define WIDGET_H
#include "student.h"
#include "teacher.h"
#include <QWidget>
#include<QDebug>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void mysolt();//槽函数就不用管那么多
signals:
    void mysignal();//信号函数必须写在signals下



private:
    Ui::Widget *ui;
    teacher*tch;
    student* stu;
};
#endif // WIDGET_H
